import Router from "vue-router";

import Home from "@modules/system/Home.vue";
import Error404 from "@modules/system/404.vue";

import M3u8Video from "@modules/m3u8video/M3u8Video.vue";
import M3u8VideoPlayer from "@modules/m3u8video/M3u8VideoPlayer.vue";
import M3u8VideoForm from "@modules/m3u8video/M3u8VideoForm";

const routes = [
    { path: "/", component: Home },
    { path: "/home", component: Home },
    { path: "/m3u8video", component: M3u8Video },
    { path: "/m3u8video/player/:id", component: M3u8VideoPlayer },
    { path: "/m3u8video/add", component: M3u8VideoForm},
    { path: "*", component: Error404 }
];

const MyRouter = new Router({
    mode: "hash",
    routes
});

export default MyRouter;